<template>
	<view class="mask flex-center">
		<view class="content botton-radius">

			<view class="content-header"></view>
			<view class="content-body">
				<view class="title">
					<text>店铺公告</text>
				</view>
				<view class="body">
					<scroll-view class="box-des-scroll" scroll-y="true">
						<view v-for="(content,index) in item.content"><text  class="box-des">{{index+1}}.{{content.content}}</text><br/></view>
						
					</scroll-view>
				</view>
				<view class="footer flex-center">

					<button @click="know" class="content-button" style="border: none;color: #fff;" plain>
						我已仔细阅读
					</button>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		
		props: {
			item: {
				type: Object,
				default: {}
			}
		},
		
		data() {
			return {
				content: '<p>我们仅提供设备及相应设备设施，使用人须遵守治安管理条例,违者由使用人自行承担相应责任及后果</p><p>1.严禁未年人进入场所;</p><p>2.严禁黄.赌.毒打架斗殴等一切违法活动;</p><p>3.使用人须自行对身体状况负责,注意个人安全;</p><p>4.破坏或带走本场所提供的设备请照价赔偿;</p><p>5.请自行保管好私人物品,如有遗失概不负责;</p><p><br/></p>',
				title: '',
				id: ''
			}
		},
		mounted() {


		},
		methods: {

			
			know() {
				
				this.$emit("closeNotice")
				
			}
		}
	}
</script>

<style>
	page {
		background: transparent;
	}

	.flex-center {
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		justify-content: center;
		align-items: center;
	}

	.mask {
		position: fixed;
		left: 0;
		top: 0;
		right: 0;
		bottom: 0;
		background-color: rgba(0, 0, 0, .65);
	}

	.botton-radius {
		border-bottom-left-radius: 30rpx;
		border-bottom-right-radius: 30rpx;

		border-top-left-radius: 30rpx;
		border-top-right-radius: 30rpx;
	}

	.content {
		position: relative;
		top: 0;
		width: 600rpx;
		background-color: #fff;
		box-sizing: border-box;
		padding: 0 20rpx;
		font-family: Source Han Sans CN;
	}

	.text {
		/* #ifndef APP-NVUE */
		display: block;
		/* #endif */
		line-height: 200px;
		text-align: center;
		color: #FFFFFF;
	}

	.content-top {
		position: absolute;
		top: -195rpx;
		left: 0;
		width: 600rpx;
		height: 70rpx;
	}

	.content-top-text {
		font-size: 45rpx;
		font-weight: bold;
		color: #F8F8FA;
		position: absolute;
		top: 120rpx;
		left: 50rpx;
		z-index: 1;
	}

	.content-header {
		height: 40rpx;
	}

	.title {
		font-size: 40rpx;
		font-weight: bold;
		color: #F8B62B;
		line-height: 38px;
		text-align: center;
	}

	.footer {
		height: 150rpx;
		display: flex;
		align-items: center;
		justify-content: space-around;
	}

	.box-des-scroll {
		box-sizing: border-box;
		padding: 0 40rpx;
		height: 600rpx;
		text-align: left;
	}

	.box-des {
		font-size: 26rpx;
		color: #000000;
		line-height: 50rpx;
	}

	.progress-box {
		width: 100%;
	}

	.progress {
		width: 90%;
		height: 40rpx;
		border-radius: 35px;
	}

	.close-img {
		width: 70rpx;
		height: 70rpx;
		z-index: 1000;
		position: absolute;
		bottom: -120rpx;
		left: calc(50% - 70rpx / 2);
	}

	.content-button {
		text-align: center;
		flex: 1;
		font-size: 30rpx;
		font-weight: 400;
		color: #FFFFFF;
		border-radius: 40rpx;
		margin: 0 18rpx;

		height: 80rpx;
		line-height: 80rpx;

		background: linear-gradient(to right, #F8B62B, #F8B62B);
	}

	.flex-column {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
</style>